import Template from './Test.vue'
import {mapGetters, mapActions} from 'vuex'
import {number} from "../../store/getters";

export default {
    name: 'Test',
    mixins: [Template],
    computed: mapGetters({
        count: 'getNumber'
    }),
    methods: {
        ...mapActions({
            increase: 'addNumAction',
            decrease: 'diffNumAction',
            defaultNum: 'defaultNumAction'
        })
    },
    created() {
        this.defaultNum()
    }
}